home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / sbin / update-usplash-theme < prev    next >
Text File  |  2009-10-27  |  662b  |  25 lines

  1. #! /bin/sh
  2. set -e
  3.  
  4. PATH="/usr/sbin:$PATH"
  5.  
  6. if [ -f "/usr/lib/usplash/$1.so" ]; then
  7.     THEME="/usr/lib/usplash/$1.so"
  8. elif [ -f "/usr/lib/usplash/usplash-theme-$1.so" ]; then
  9.     THEME="/usr/lib/usplash/usplash-theme-$1.so"
  10. elif [ -f "/usr/lib/usplash/$1-splash.so" ]; then
  11.     # Edubuntu uses this naming scheme; sigh
  12.     THEME="/usr/lib/usplash/$1-splash.so"
  13. else
  14.     if [ "$1" ]; then
  15.         echo "Usplash theme '$1' not recognised. Installed themes:" >&2
  16.     else
  17.         echo "Installed themes:" >&2
  18.     fi
  19.     find /usr/lib/usplash -name \*.so ! -name usplash-artwork.so -printf '%P\n' | sed 's/\.so$//'
  20.     exit 1
  21. fi
  22.  
  23. update-alternatives --set usplash-artwork.so "$THEME"
  24. update-initramfs -u
  25.